package net.odtel.mailadmin.services;

import java.util.List;

import net.odtel.mailadmin.model.EmailAccount;

public interface EmailAccountService {

	public void save(EmailAccount emailAccount);

	public void update(EmailAccount emailAccount);

	public void remove(EmailAccount emailAccount);

	public void remove(Long emailAccountId);

	public EmailAccount findByLogin(String login);
	
	public List<EmailAccount> findRange(int[] range);
	
	public boolean ifExist (String login);
	
	public boolean inDomain (String domain);
	
	public EmailAccount findById(Long Id);

	public List<EmailAccount> findAll();

	public int count();
}
